Installation
Install Visual Studio Code
Install Visual Studio Code Extensions
Add Workspace Settings
- Open Workspace Settings (JSON) by clicking Shift+Ctrl+P and searching for it.
- Add the following configuration there (to upload files under
/upload/
):"markdown.copyFiles.destination": { "/**/*": "uploads/${documentBaseName}/" }
Add User Settings (Optional)
Click Shift+Ctrl+P and search for:
- Markdown All in One: Toggle Code Span, and click the gear icon and set its key binding to Shift+Win+C.
- Markdown All in One: Toggle Code Block, and click the gear icon and set its key binding to Alt+Win+C.
How-To-Do Guide
Creating New Page from Wiki Link
You can create a new Markdown page by holding Ctrl down while clicking a wiki link (e.g. [[New Page]]
).
Open Preview Pane
Click Ctrl+Shift+V.
Add File or Image
- Start dragging a file or an image in File Explorer.
- Before dropping hold Shift down.
- Drop the file into a Markdown file.
- It should automatically upload it and create an appropriate tag for it.
Publish Changes
- Commit changes using the Source Control view.
- Sync them.
- It takes up to 5 minutes for them to appear online.
Forking GnollHack Wiki Repository and Making Pull Request
If you have no write rights to the GnollHack Wiki repository, before making changes you should:
- Fork the GnollHack Wiki repository on GitHub.
-
Install Git on the local machine.
- You can also install GitHub Desktop for a GUI.
- Clone the forked repository to the local machine.
- Make changes and commit them.
- Push changes the forked repository.
- Make a pull request to the GnollHack Wiki repository from the forked repository on GitHub.
Additional Information
You can read more about forking repositories and making pull requests in GitHub documentation: